package _128._90._114._47.ormrpc.services.WSSCMWebServiceFacade;

public class WSSCMWebServiceFacadeSrvProxyProxy implements _128._90._114._47.ormrpc.services.WSSCMWebServiceFacade.WSSCMWebServiceFacadeSrvProxy {
  private String _endpoint = null;
  private _128._90._114._47.ormrpc.services.WSSCMWebServiceFacade.WSSCMWebServiceFacadeSrvProxy wSSCMWebServiceFacadeSrvProxy = null;
  
  public WSSCMWebServiceFacadeSrvProxyProxy() {
    _initWSSCMWebServiceFacadeSrvProxyProxy();
  }
  
  public WSSCMWebServiceFacadeSrvProxyProxy(String endpoint) {
    _endpoint = endpoint;
    _initWSSCMWebServiceFacadeSrvProxyProxy();
  }
  
  private void _initWSSCMWebServiceFacadeSrvProxyProxy() {
    try {
      wSSCMWebServiceFacadeSrvProxy = (new _128._90._114._47.ormrpc.services.WSSCMWebServiceFacade.WSSCMWebServiceFacadeSrvProxyServiceLocator()).getWSSCMWebServiceFacade();
      if (wSSCMWebServiceFacadeSrvProxy != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)wSSCMWebServiceFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)wSSCMWebServiceFacadeSrvProxy)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (wSSCMWebServiceFacadeSrvProxy != null)
      ((javax.xml.rpc.Stub)wSSCMWebServiceFacadeSrvProxy)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public _128._90._114._47.ormrpc.services.WSSCMWebServiceFacade.WSSCMWebServiceFacadeSrvProxy getWSSCMWebServiceFacadeSrvProxy() {
    if (wSSCMWebServiceFacadeSrvProxy == null)
      _initWSSCMWebServiceFacadeSrvProxyProxy();
    return wSSCMWebServiceFacadeSrvProxy;
  }
  
  public java.lang.String importBill(java.lang.String billType, java.lang.String billDataJSON, int billStatus) throws java.rmi.RemoteException, scmwebservicefacade.client.WSInvokeException{
    if (wSSCMWebServiceFacadeSrvProxy == null)
      _initWSSCMWebServiceFacadeSrvProxyProxy();
    return wSSCMWebServiceFacadeSrvProxy.importBill(billType, billDataJSON, billStatus);
  }
  
  
}